From: Sebastian Keller Date: Wed, 13 Mar 2024 21:30:03 +0000 (+0100) Subject: magnifier: Stop using Clutter.StaticColor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8616ec00a0dea0f3fe3cf41597bf9aea1e86f4d1;p=gnome-shell.git magnifier: Stop using Clutter.StaticColor This was removed from mutter in commit 72c2d8913. Instead of manually creating a white color, we can just rely on ClutterTextureNode creating one for us when passing null. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7480 Part-of: --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 84a2d8924..7d131b892 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -65,10 +65,9 @@ const MouseSpriteContent = GObject.registerClass({ if (!this._texture) return; - let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE); let [minFilter, magFilter] = actor.get_content_scaling_filters(); let textureNode = new Clutter.TextureNode(this._texture, - color, minFilter, magFilter); + null, minFilter, magFilter); textureNode.set_name('MouseSpriteContent'); node.add_child(textureNode);